package com.ysl.study.designpattern.createmode.simplefactory;

/**
 * 简单工厂测试
 *
 * @author yangshanlin
 * @date 2023/2/17 14:51
 * @describe
 */
public class FactoryTest {
    public static void main(String[] args) {
        ShapeFactory shapeFactory = new ShapeFactory();
        Shape shape = shapeFactory.getShape("circle");
        shape.draw();

        shape = shapeFactory.getShape("square");
        shape.draw();
    }
}
